package com.xinhua.erp.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xinhua.erp.utils.JsonLongSerializer;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;


@Entity
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class Inventory implements Serializable {

    @Id
    @JsonSerialize(using = JsonLongSerializer.class)

    private Long id;

    private Long productId;

    private String productName;

    private Long stockhouseId;

    private String stockhouseName;

    private Integer inventory;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public Long getStockhouseId() {
        return stockhouseId;
    }

    public void setStockhouseId(Long stockhouseId) {
        this.stockhouseId = stockhouseId;
    }

    public String getStockhouseName() {
        return stockhouseName;
    }

    public void setStockhouseName(String stockhouseName) {
        this.stockhouseName = stockhouseName == null ? null : stockhouseName.trim();
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }



}
